
#include "stdafx.h"
#include "Sentence.h"
#include <map>
#include <string>

using namespace std;

	Sentence::Sentence()
		:content(""), fileNum(0), filePos(0)
	{
		map<string, double> newMap;
	}

	Sentence::~Sentence()
	{

	}

	Sentence::Sentence(map<string, double> smap, string content, int fileNum, int filePos)
		:content(content), fileNum(fileNum), filePos(filePos)
	{
		map<string, double> newMap;
		for (map<string, double>::iterator it = smap.begin(); it != smap.end(); ++it)
		{
			newMap.insert(map<string,double>::value_type(it->first,it->second));
		}
	}

	map<string, double> Sentence::getSmap()
	{
		map<string, double> newMap;
		for (map<string, double>::iterator it = smap.begin(); it != smap.end(); ++it)
		{
			newMap.insert(map<string,double>::value_type(it->first,it->second));
		}
		return newMap;
	}

	string Sentence::getContent()
	{
		return content;
	}

	
	int Sentence::getFileNum()
	{
		return fileNum;
	}

	void Sentence::setFileNum(int num)
	{
		fileNum = num;
	}

	int Sentence::getFilePos()
	{
		return filePos;
	}

	void Sentence::setFilePos(int pos)
	{
		filePos = pos;
	}
